package net.maku.events.service;

import net.maku.events.vo.ActivityQuestionBankOperateVO;
import net.maku.framework.common.utils.PageResult;
import net.maku.framework.mybatis.service.BaseService;
import net.maku.events.vo.ActivityQuestionBankVO;
import net.maku.events.query.ActivityQuestionBankQuery;
import net.maku.events.entity.ActivityQuestionBankEntity;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

/**
 * 题库题目
 *
 * @author 阿沐 babamu@126.com
 * @since 1.0.0 2025-03-22
 */
public interface ActivityQuestionBankService extends BaseService<ActivityQuestionBankEntity> {

    PageResult<ActivityQuestionBankVO> page(ActivityQuestionBankQuery query);

    List<ActivityQuestionBankVO> getAllQuestion();

    void save(ActivityQuestionBankOperateVO vo);

    ActivityQuestionBankOperateVO getInfoById(Long id);

    void update(ActivityQuestionBankOperateVO vo);

    void deleteDataById(List<Long> idList);

    /**
     * 导入题目
     *
     * @param file     excel文件
     */
    void importByExcel(MultipartFile file) throws IOException;

    /**
     * 导出题目
     */
    void export(Integer type);
}